package cn.fantasy.study.service.Impl;

import cn.fantasy.study.dao.StudentDAO;
import cn.fantasy.study.entity.Student;
import cn.fantasy.study.service.StudentService;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class StudentServiceImpl implements StudentService {

    private StudentDAO studentDAO;

    public StudentDAO getStudentDAO() {
        return studentDAO;
    }

    public void setStudentDAO(StudentDAO studentDAO) {
        this.studentDAO = studentDAO;
    }

    @Override
    public void save(Student student) {
        studentDAO.save(student);
    }
}
